<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s"  uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
    <title>微积分</title>
    <meta name="keywords" content="keyword ..." />
    <meta name="Description" content="description ..." />
    <!--<link href="favicon.ico" rel="shortcut icon" />-->
    <link href="css/global.css" rel="stylesheet" type="text/css" />
    <link href="css/exchange.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
	<jsp:include page="include/header.jsp" />
</div>
<div id="maincontent">  
  <div id="exchange">
   <div class="t"><div class="step"><img src="pic/step1.jpg" alt="" title="" /></div></div>
   <div class="body">
   <s:if test="#session.shoppingList.size>0">
     <div id="formcontent">
       <ul>
         <li class="lit"><span class="s1">礼品名称</span><span class="s2">数量</span><span class="s2">积分</span><span class="s2">小计</span><span class="s2">操作</span></li>
         <s:iterator value="#session.shoppingList" status="st">
         <li>
          <div class="img"><a href="giftdetail?giftId=<s:property value="id" />"><img src="<s:property value="pic" />" alt="<s:property value="name" />" title="<s:property value="name" />" /></a></div>
          <div class="name"><h4><a href="giftdetail?giftId=<s:property value="id" />"><s:property value="name" /></a></h4><p class="type">款式：怒</p></div>
          <div class="num">
          <input onclick="location='minus?itemIndex=<s:property value="#st.index" />'" type="button" class="btn bnt0" />
          <input type="text" value="<s:property value="num" />" class="text" />
          <input onclick="location='plus?itemIndex=<s:property value="#st.index" />'" type="button" class="btn btn1" />
          </div>
          <div class="point"><s:property value="point" />分</div>
          <div class="point"><s:property value="point*num" />分</div>
          <div class="del"><a onclick="javascript:return(confirm('确认删除?'))" href="deleteItem?itemIndex=<s:property value="#st.index" />">删除</a></div>
         </li>
         </s:iterator>
         </ul>
       <div class="control">合计：<b><s:property value="totalPoint" />积分</b>
         <input onclick="location='settleAccounts'" type="button" class="checkout" value="" /></div>
     </div>
     </s:if>
     <s:else>
     <font size="6px" >兑换车中还没有商品,<a href="listAllGifts">马上前往选购</a></font>
     </s:else>
   </div>
   <div class="b"></div>
  </div>
</div>
<div id="footer">
 <div class="menu"><a href="#">关于微积分</a><span>|</span><a href="#">服务条款</a><span>|</span><a href="#">加盟合作</a><span>|</span><a href="#">广告服务</a><span>|</span><a href="#">客服中心</a><span>|</span><a href="#">意见反馈</a><span>|</span><a href="#">网站导航</a></div>
 <p><span>&copy;</span> 2009-2011 Wjifen.com All Right Reserved 京ICP备09045377号-2</p>
 <p>广州科信德科技发展有限公司 版权所有</p>
</div>
<div id="fullcontent"><div class="fullcontent"></div></div>
<script language="javascript" type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script language="javascript" type="text/javascript" src="js/default.js"></script>
<script language="javascript" type="text/javascript" src="js/exchange.js"></script>
</body>
</html>
<s:debug></s:debug>